package com.atguigu.gulimall.search.controller;

import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * nacos的配置动态刷新，@RefreshScope和@Value()注解一起使用，不然导致配置不能动态获取
 */
@RefreshScope
@RestController
public class IndexController {

    @GetMapping("/index")
    public String test(){
        return "hello~gateway";
    }
}
